<%@ taglib uri="http://dwt.definitysolutions.com/jsp/taglib/ui" prefix="ui" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>

<div>
	<a href="${base}/person/create">
		<ui:i18n key="button.create" />
	</a>
	<ui:messagebox/>
	<table>
		<tr>
			<th>
				<ui:i18n key="person.name" base="form" />
			</th>
			<th>
				<ui:i18n key="person.age" base="form" />
			</th>
			<th>
				<ui:i18n key="button.delete" />
			</th>
		</tr>
		<c:forEach items="${personList}" var="item">
			<tr>
				<td>
					<a href="${base}/person/edit/${item.id}">${item.name}</a>
				</td>
				<td>${item.age}</td>
				<td>
					<a href="${base}/person/delete/${item.id}"><ui:i18n key="button.delete" /></a>
				</td>
			</tr>
		</c:forEach>
	</table>
</div>